﻿using System;
using KPIS.GERP.GIMS.MODEL;
using System.Collections.Generic;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.IDAL
{
    public interface IDALMasterPurchaseRuleMapping
    {
        IList<MasterPurchaseRuleMappingInfo> GetMasterPurchaseRuleMapping();
        IList<MasterPurchaseRuleMappingInfo> GetMasterPurchaseRuleMapping(string record_status);
        IList<MasterPurchaseRuleMappingInfo> GetMasterPurchaseRuleMappingWithRule(int pc_rule_seq);
        MasterPurchaseRuleMappingInfo GetMasterPurchaseRuleMapping(int seq);
        void Insert(IList<MasterPurchaseRuleMappingInfo> infoList, int rule_seq, IDBManager dbManagerTrans);
        void Update(MasterPurchaseRuleMappingInfo info);
        void Delete(MasterPurchaseRuleMappingInfo info);
        void DeleteAll(IList<MasterPurchaseRuleMappingInfo> infoList);
        void DeleteFromDB(IList<MasterPurchaseRuleMappingInfo> infoList);
        void DeleteFromDB(Nullable<int> rule_seq, IDBManager dbManagerTrans);
        void Restore(IList<MasterPurchaseRuleMappingInfo> infoList);
    }
}
